#import "AppController.h"

@implementation AppController

- (void)awakeFromNib
{
	[self loadPage];
}

- (void)loadPage
{
	NSString *url = @"https://pibb.com/signin";
	
	[[webView mainFrame] loadRequest:
			[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];
}

- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication
  									hasVisibleWindows:(BOOL)flag
{
	if(!flag) {
		[mainWindow makeKeyAndOrderFront:nil];
	}
	return false;
}

@end
